package com.heihei.itextdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 班级
 * </p>
 *
 * @author duanhengfei
 * @since 2020-12-04
 */
@Data
@TableName("t_class")
@ApiModel(value = "班级", description = "班级")
public class ClassEntity extends Model<ClassEntity> {

    /**
     * 主键id
     */
    @TableId(value = "ID", type = IdType.INPUT)
    @ApiModelProperty(value = "主键id")
    private String id;

    /**
     * 班级名称
     */
    @ApiModelProperty(value = "班级名称")
    private String name;

    /**
     * 专业id
     */
    @ApiModelProperty(value = "专业id")
    private String majorId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * 学生列表
     */
    @ApiModelProperty(value = "学生列表")
    @TableField(exist = false)
    private List<HumanEntity> humanList;

}
